package com.yeyaomai.dksns.flowis.dao;


import org.springframework.data.domain.Page;
import org.springframework.data.mongodb.core.query.Query;

import com.yeyaomai.dksns.flowis.domain.flowisdetail.FlowisQueryOrder;
import com.yeyaomai.dksns.flowis.domain.flowisdetail.LoginSession;

public interface LoginSessionDao {
	/**
	 * pageNum 第几页 pageSize 每页多少行 orders 排序 criterias 条件
	 * 
	 * @return
	 */
	public Page<LoginSession> getSplit(FlowisQueryOrder order);

	/**
	 * 返回总记录数
	 * 
	 * @return
	 */
	public long getTotalSize(Query query, Class<LoginSession> document);
	
	public Integer getLoginProfileBydkcode(String dkcode);
}
